﻿@* Override default Decimal template to display value in bold. *@
@using System.Globalization

@functions {
    private object FormattedValue {
        get {
            if (ViewData.TemplateInfo.FormattedModelValue == ViewData.ModelExplorer.Model) {
                return String.Format(CultureInfo.CurrentCulture, "{0:0.00}", ViewData.ModelExplorer.Model);
            }
            return ViewData.TemplateInfo.FormattedModelValue;
        }
    }
}
<b>@Html.Encode(FormattedValue)</b>